import os
import string
from datetime import datetime

def listAllFile(dir):
    for parent,dirnames,filenames in os.walk(dir):
        for childrenDir in dirnames:
            listAllFile(childrenDir)
        for fileName in filenames:
            if ".png" in fileName:
                print(fileName)

start=datetime.now().timestamp()
listAllFile("d:/")
end=datetime.now().timestamp()
print( end-start )
        
        
             
